home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / src / Keywords.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-03-23  |  571 b   |  29 lines

  1. /* Keywords.h, Uros Platise, dec. 1998 */
  2.  
  3. #ifndef __Keywords
  4. #define __Keywords
  5.  
  6. class TKeywords{
  7.   enum TSize{S_Byte=1,S_Word=2,S_Long=4,A_BigEndian=8}; 
  8.   static const char* help_keyformat;
  9.   
  10.   TSize getType();
  11.   long GetSize(TSize type){return (long)(type & (S_Byte+S_Word+S_Long));}
  12.   void outArg(TSize sizeType, long val);
  13.   void ds();
  14.   void dc();
  15.   void cref();  
  16. public:
  17.   TKeywords(){}
  18.   ~TKeywords(){}
  19.   
  20.   bool parse();    /* return true if keyword was found and parsed */
  21.   void Translate(int keyNo);
  22.   void Device();  
  23. };
  24.  
  25. extern TKeywords keywords;
  26.  
  27. #endif
  28.  
  29.